/*Copyright (c)  Sergey Schekochikhin (Genocidicbunny)
 * created on Jul 27, 2009 12:11:59 AM
 */
package Mash.UI;

import java.awt.*;



public enum SelectedMenu {
 	CAMPAIGN(Color.BLUE, "Campaign", "Starts a new Campaign game."),
	WARROOM(new Color(130, 184, 110), "War Room", "Play against the computer on a single map"),
	OPTIONS(new Color(204, 51, 204), "Options", "Set game options."),
	QUIT(Color.BLACK, "Quit", "Exit to Desktop.");
	private SelectedMenu(Color c, String name, String helptext){
        color = c; myName = name; myText = helptext;
    }
    private Color color;
    private String myName;
	private String myText;

    public Color getColor(){
        return color;
    }
    public String getName(){
        return myName;
    }
	public String getText(){
		return myText;
	}
    public static SelectedMenu getNext(SelectedMenu current){
       switch(current){
           case CAMPAIGN: return WARROOM;
           case WARROOM: return OPTIONS;
           case OPTIONS: return QUIT;
           case QUIT: return CAMPAIGN;
       }
        return null;
    }
     public static SelectedMenu getPrevious(SelectedMenu current){
       switch(current){
           case CAMPAIGN: return QUIT;
           case WARROOM: return CAMPAIGN;
           case OPTIONS: return WARROOM;
           case QUIT: return OPTIONS;
       }
        return null;
    }
}
